##
## @file Makefile
## Verteilte Systeme - tcpip Programmierung
##
## @author Theresa Meiksner - theresa.meiksner@technikum-wien.at
## @author Ronald Wimmer    - ronald.wimmer@technikum-wien.at
## @date 2013/12/09
##
## @version 1.0
##
## Last Modified: $Author: Ronald Wimmer $
##

##
## ------------------------------------------------------------- variables --
##
CC=gcc
CFLAGS=-DDEBUG -Wall -pedantic -Werror -Wextra
LFLAGS=-lsimple_message_client_commandline_handling
CP=cp
CD=cd
MV=mv
GREP=grep

OBJECT_SERVER=simple_message_server.o
OBJECT_CLIENT=simple_message_client.o

EXCLUDE_PATTERN=footrulewidth

##
## --------------------------------------------------------------- rules --
##

%.o : %.c
	$(CC) $(CFLAGS) -c $<

## ------------------------------------------------------------- targets --

all: simple_message_server simple_message_client

simple_message_server: $(OBJECT_SERVER)
	$(CC) $(CFLAGS) -o $@ $^

simple_message_client: $(OBJECT_CLIENT)
	$(CC) $(CFLAGS) -o $@ $^ $(LFLAGS)

clean:
	$(RM) *.o *~

distclean: clean
	$(RM) -r doc
##
## -------------------------------------------------------- dependencies --
## 

